package com.hz.cheetah.sample.server;


import com.hz.cheetah.sample.api.HelloService;
import com.hz.cheetah.sample.api.Person;
import com.hz.cheetah.server.CheetahService;

@CheetahService(value = HelloService.class, version = "sample.hello2")
public class HelloServiceImpl2 implements HelloService {

    @Override
    public String hello(String name) {
        //try {
       //     Thread.sleep(10000);
       // } catch (InterruptedException e) {
       //     e.printStackTrace();
       // }
        return "你好! " + name;
    }

    @Override
    public String hello(Person person) {
        return "你好! " + person.getFirstName() + " " + person.getLastName();
    }
}
